#define  _CRT_SECURE_NO_WARNINGS
#include"stack.h"

void test01()
{
	ST s1;
	STInit(&s1);
	STPush(&s1, 1);
	STPush(&s1, 2);
	STPush(&s1, 3);
	STPush(&s1, 4);
	while (s1.top)
	{
		printf("%d ", STGetTop(&s1));
		STPop(&s1);
	}

}

int main()
{
	test01();
	return 0;
}